package org.cmodel.plugin2.interceptor;

import com.gitee.starblues.bootstrap.processor.interceptor.PluginInterceptorRegister;
import com.gitee.starblues.bootstrap.processor.interceptor.PluginInterceptorRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Basic2InterceptorRegister implements PluginInterceptorRegister {

    @Autowired
    private Basic2HandlerInterceptor basic2HandlerInterceptor;

    @Override
    public void registry(PluginInterceptorRegistry registry) {
        registry.addInterceptor(basic2HandlerInterceptor, PluginInterceptorRegistry.Type.PLUGIN)
                .addPathPatterns("/**");
    }
}

